package com.pubinfo.passbook.common.service.engine;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.entity.TEngineComputeChain;
import com.pubinfo.passbook.common.model.dto.engine.EngineChainParam;
import org.springframework.stereotype.Service;

/**
 * @author zhouch
 * @date 2021/12/14 11:16
 */
@Service
public interface EngineComputeChainService extends IService<TEngineComputeChain> {

    /**
     * 获得计算链信息, 通过规则ID
     *
     * @param ruleId
     * @return
     */
    TEngineComputeChain getChainInfoByRuleId(Integer ruleId);

    IPage<TEngineComputeChain> page(EngineChainParam param);

    TEngineComputeChain getByDistrictID(String districtId);

    Boolean existDistrictID(String districtId);

}
